package cn.com.dcsgo.dto;

import cn.com.dcsgo.validation.ValueOf;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 添加活动请求参数
 *
 * @author Dcsgo
 * @since 2025/10/17 10:29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "添加活动请求参数")
public class ProdTagAddDTO {
    /**
     * 活动标题
     */
    @NotBlank(message = "活动标题不能为空或空白字符串")
    @Schema(description = "活动标题")
    private String title;

    /**
     * 状态(1为正常,0为禁用)
     */
    @NotNull(message = "状态不能为空")
    @ValueOf(value = {"1","0"},message = "状态只能为1：正常，0：禁用")
    @Schema(description = "状态(1为正常,0为禁用)")
    private Integer status;

    /**
     * 样式(0:一列一个,1:一列两个,2:一列三个)
     */
    @NotNull(message = "样式不能为空")
    @ValueOf(value = {"0","1","2"},message = "状态只能为0：一列一个,1：一列两个,2：一列三个")
    @Schema(description = "样式(0:一列一个,1:一列两个,2:一列三个)")
    private Integer style;

    /**
     * 排序数，升序排序
     */
    @Schema(description = "排序数，升序排序")
    private Integer seq;
}
